package cn.tedu.reflection;
/**本类用于测试暴力反射的物料类*/
public class Person {
    //1.提供私有属性
    private String name;
    private int age;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    //2.提供私有方法
    private void save(int n,String s){
        System.out.println("save方法"+n+s);
    }
    private void update(){
        System.out.println("update方法");
    }

    private void add(String str){
        System.out.println("add方法"+str);
    }
}
